@inject('storeService', 'App\App\Services\StorageService')

@extends('layouts.admin')
@section('pageTitle', '投票数据列表')
@section('style')
    <link rel="stylesheet" href="/css/admin/activityDemo.css"/>
@endsection
@section('content')
    {{--@component('components.web.sidemenu')--}}
    {{--@endcomponent--}}
    <div class="main-panel">
        <div class="content apartment-index">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-12">
                        <div class="card">
                            <div class="header">
                                <button class="btn btn-fill btn-info vote-back-list">返回</button>
                            </div>
                            <div class="content">
                                <table id="bootstrap-votedata-table-container" class="table"
                                       data-url="/web/vote/getValidation?activity_id={{$activity_id}}">
                                    <thead>
                                    {{--<th data-field="state" data-checkbox="true">选择</th>--}}
                                    <th data-field="cover_url" data-formatter="imgFormatter" class="vote-view-smimg"
                                        data-sortable="false">投票内容
                                    </th>
                                    <th data-field="title" data-sortable="true">名称</th>
                                    <th data-formatter="votesNumberFormatter" >实际票数</th>
                                    <th data-field="intervention_number">干预票数</th>
                                    <th data-field="votes_number" data-formatter="votesSumFormatter">总票数</th>
                                    <th data-field="id" class="td-actions text-center" data-events="operateEvents" data-formatter="operateFormatter">操作</th>
                                    </thead>
                                    <tbody>
                                    </tbody>
                                </table>
                            </div>
                        </div><!--  end card  -->
                    </div> <!-- end col-md-12 -->
                </div> <!-- end row -->
            </div>
        </div>
    </div>
@endsection
@section('script')
    <script src="/js/views/activity/initialVotedatalist.js"></script>
@endsection